package com.pk.platform.business.question.dao;

import java.util.List;
import java.util.Map;

import com.pk.platform.business.core.dao.IGenericDao;
import com.pk.platform.business.question.vo.PaperVO;
import com.pk.platform.domain.question.Question;
import com.pk.platform.util.page.Pager;

public interface IPaperDefineDao extends IGenericDao {

	public List<Map<String, Object>> queryPaperByPage(PaperVO pvo, Pager pager);
	
	public List<Map<String, Object>> queryCodeTableByPaper(String paperId, String ctType);
	
	public List<Map<String, Object>> queryItemOptionByCodeTable(String ctId);
	
	public List<Map<String, Object>> queryQuestionByPage(PaperVO pvo, Pager pager);
	
	public boolean existQuestionCode(String paperId, String qesCode, String id);
	
	public boolean existCodeTableCode(String paperId, String code, String id);
	
	public Question queryQuestionByCode(String code);
	
	public void delQuestionKeyByItemOption(String qesId, String ioKey);
	
	public void delQuestionKeyByHalfOpen(String qesId);
	
}
